package net.paoding.rose.web.test.controllers;

import net.paoding.rose.web.annotation.Param;
import net.paoding.rose.web.annotation.ReqMapping;

public class UserController {

	public String index() {
		return "index";
	}

	@ReqMapping(path = "{id}")
	public int show(@Param("id") Integer id) {
		return id;
	}

	@ReqMapping(path = "{id}/account")
	public String account(@Param("id") Integer id) {
		return "account_" + id;
	}

	public String post() {
		return "POST";
	}
}
